package com.wen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wen.entity.Coach;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author dhh
 * @date 2021/11/17 10:29
 */
public interface CoachMapper extends BaseMapper<Coach> {

    /**
     * 根据教练ID查询课程信息
     * @param coachId
     * @return
     */
    List<Map<String, Object>> getCourseByCoachId(@Param("coachId") Integer coachId,@Param("search") String search);
}
